package com.bank.service;

import com.bank.entity.Mail;
import com.bank.repository.MailRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MailService extends EntityService<Mail, MailRepo> {

    @Autowired
    protected MailService(MailRepo repo) {
        super(repo);
    }

    public List<Mail> findMailListByReceivePerson(String receivePerson) {
        return repo.findMailListByReceivePerson(receivePerson);
    }
}
